package day04;

import com.sun.security.jgss.GSSUtil;

public class WhileDemo {
    public static void main(String[] args) {
        //输出五次行动是成功的阶梯
        int times = 0;
        while (times < 5){
            System.out.println("行动是成功的阶梯！");
            times++;
        }
        System.out.println("继续执行");
        /*
                        times = 0
        true    输出     times = 1
        true    输出     times = 2
        true    输出     times = 3
        true    输出     times = 4
        true    输出     times = 5
        false   循环结束
        输出继续执行
         */

        //输出9的乘法表
        int num = 1;
        while (num <= 9){
            System.out.println(num+"*9="+num*9);
            num++;
        }
        System.out.println("继续执行");
    }
}
